<div class="pageContent">
    <form method="post" id="Content_insert" action="{:U('Custom/answer')}" onsubmit="return validateCallback(this,dialogAjaxDone);">
        <input type="hidden" name="id" value="{$question['id']}" />
		<div class="pageFormContent" layoutH="52">
            <div id="product_base">
                <dl class="nowrap">
                    <dt>
                        <label>
                            问题：
                        </label>
                    </dt>
                    <dd style="background:#eee;margin:10px 0;border-bottom:1px solid #ccc;">
                        <p>{$list['contents']}</p>
						<p style="text-align:right;width:98%">{$list['time']|date="Y-m-d H:m:s",###}</p>
                    </dd>
                </dl>
	                <dl class="nowrap image" >
	                    <dt>
	                        <label>
	                           问题解答：
	                        </label>
						{if empty($list['answer_centents'])}
							<dd style="color:red">
								&nbsp 您还没有解答该问题
							</dd>
						{else}
							</dt>
		                     <dd id="upimagedd" style="background:#eee;margin:3px 0;border-bottom:1px solid #ccc;">
		                       <p style="color:red">{$list['answer_centents']}</p>
							   <p style="text-align:right;width:98%;height:14px;">{$list['answer_time']|date="Y-m-d H:m:s",###}</p>
		                    </dd>
						{/if}
	                </dl>
                <dl class="nowrap">
                    <dt>
                        <label>
                            解答：
                        </label>
                    </dt>
                    <dd>
						<input type="hidden" name="id" value="{$list['id']}">
                        <textarea name='content' cols=80 rows=8></textarea>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit" >
                                保存
                            </button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                取消
                            </button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>

